//
//  SCBottomPopAlertVC.h
//  PhotoAlbum
//
//  Created by Chao Sheng on 2021/12/8.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

typedef NS_ENUM(NSInteger,SCBottomPopActionType) {
    SCBottomPopActionDefaultType = 1,
    SCBottomPopActionCancelType = 2,
};

typedef NS_ENUM(NSInteger, SCPopupAnimatingType) {
    SCPopupAnimatingTypePresent = 1,
    SCPopupAnimatingTypeDismiss = 2,
};

//底部弹框子项
@interface SCBottomPopAction : NSObject

@property (nonatomic,copy) NSString *title;
@property (nonatomic,assign) SCBottomPopActionType type;
@property (nonatomic,copy) void(^SCBottomPopSelectHandler)(void);

- (SCBottomPopAction*)actionWithTitle:(NSString*)title ActionType:(SCBottomPopActionType)type SelectHandler:(void(^)(void))selectHandler;

@end

///底部弹出框alert
@interface SCBottomPopAlertVC : UIViewController

/**转场动画类型*/
@property (nonatomic, assign) SCPopupAnimatingType animatingType;

//dimiss
- (void)dismiss;
- (void)dismissWithCompletion:(void (^__nullable)(void))completion;

- (void)addAction:(SCBottomPopAction*)action;

@end

NS_ASSUME_NONNULL_END
